package xyz.dava.sync.fm.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document(collection = "FilemanagerFile")
@AllArgsConstructor
@NoArgsConstructor
@CompoundIndex(name = "folder_name_index",def = "{'folderId':1,'fileName':1}")
public class FilemanagerFile {
    @Id
    private String id;
    private String folderId;
    @Indexed
    private String fileName;
    //文件类型
    private String fileType;
    //排序
    private Integer fileSort;
    //文件物理路径
    private String filePath;
    //文件状态,0正常 1删除
    private Integer status;
    //文件其他信息
    private FilemanagerFileEntity entity;
    private String createBy;
    private Date createDate;
    private String updateBy;
    private Date updateDate;
    private String uploadCode;
    private String extFileId;
}
